Skip to content

Break CBF wallet chain source reference cycle#23

Merged
febyeji merged 1 commit into
add-cbf-chain-sourcefrom
cbf-wallet-weak-ref
May 28, 2026
Merged

Break CBF wallet chain source reference cycle#23
febyeji merged 1 commit into
add-cbf-chain-sourcefrom
cbf-wallet-weak-ref

Conversation

@febyeji

@febyeji febyeji commented May 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • Store the CBF on-chain wallet reference as Weak<Wallet> instead of Arc<Wallet>.
  • Upgrade the weak wallet reference only while deriving restart checkpoints.
  • Clear the stored wallet reference on stop() and abort restarts if the wallet has already been dropped.

- Store the CBF wallet reference as Weak<Wallet> instead of Arc<Wallet>.\n- Upgrade the wallet reference only when rebuilding the CBF node.\n- Clear the stored wallet reference during shutdown.
@febyeji febyeji marked this pull request as ready for review May 28, 2026 15:06
@febyeji febyeji merged commit 75cd5ae into add-cbf-chain-source May 28, 2026
40 of 44 checks passed
febyeji added a commit that referenced this pull request Jun 3, 2026
- Store the CBF wallet reference as Weak<Wallet> instead of Arc<Wallet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant